const router = require('koa-router')()
const orderController = require('./../controller/order');

router.prefix('/order');

router.post('/addOrder',orderController.addOrder)

router.get('/getOrders',orderController.getOrders)

router.post('/passOrder',orderController.passOrder)

router.post('/deleteOrder',orderController.deleteOrder)

router.get('/passAllOrder',orderController.passAllOrder)

router.post('/getUserOrders',orderController.getUserOrders)

module.exports = router
